package org.lyfeng.spring.beans.definitions;

import org.lyfeng.spring.exception.BeanDefinitionExcetion;

/**
 * definition注册器
 * @author leiyufeng
 * 2013-4-23 上午10:15:49
 */
public interface BeanDefinitionRegistry {
	
	void registerBeanDefinition(String beanName, BeanDefinition beanDefinition)	throws BeanDefinitionExcetion;
	
	void removeBeanDefinition(String beanName) throws BeanDefinitionExcetion;
	
	BeanDefinition getBeanDefinition(String beanName) throws BeanDefinitionExcetion;
	
	boolean containsBeanDefinition(String beanName);
	
//	boolean isBeanNameInUse(String beanName);
}
